<div>
{{if tag == "a"}}
<a {{each(i, attr) attrs}}attr.name="attr.value"{{/each}} href="${href}">
${content}
</a>
{{else tag="img"}}
<img {{each(i, attr) attrs}}attr.name="attr.value"{{/each}} src="${src}"/>
{{/if}}
</div>
